Extension::MongoDBDeleteRecord Method
Syntax
c DeleteRecord(C id )
Arguments
- id
_id for the document.
Description
Deletes a document db record using 'id'.
dim mongo as extension::MongoDB = extension::MongoDB::Create("mongodb://localhost:27017","TestDatabase","flowers") dim json as c = mongo.GetRecords("{ \"Id\" : \"00000062\" }") dim recs as p = json_parse(json) dim id as c = recs[1]._id mongo.DeleteRecord(id)
Remove a document using the _id identifier returned in the document.